<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="utf-8">
    <!--<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">-->
    <meta name="description" content="51王者快报为您提供王者荣耀攻略、王者荣耀新手攻略、新手怎么玩、攻略技巧大全。更多王者荣耀攻略。"/>
    <meta name="keywords" content="王者荣耀攻略,王者荣耀攻略技巧,王者荣耀攻略大全，王者荣耀自走棋，王者荣耀KPL"/>
    {block name="title"}{/block}
    <link rel="stylesheet" href="__CSS__/reset.css">
    <link rel="stylesheet" href="__CSS__/index.css">
    {block name="style"}{/block}
    <style>
        .login-wrap{
            position: absolute;
            right: 0;
            top:25px;
            padding-right: 25px;

        }
        .login-main{

        }

    </style>
</head>
<body class="layui-layout-body">

    {block name="body"}{/block}

<script src="__JS__/jquery-3.1.1.min.js"></script>
{block name='script'}{/block}
<script>
    $(function () {


        if(localStorage.getItem("username") !== null){
            $("#loginMain").hide()
            $("#logged").show()
            $("#usernameShow").text(localStorage.getItem("username"))
        }
        $("#logout").on('click',function () {
            $("#loginMain").show()
            $("#logged").hide()
            localStorage.removeItem("username")
            localStorage.removeItem("user_id")
            $("#usernameShow").text('')
        })
    })
</script>
</body>

</html>